package com.slixils.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: JinChongLi
 * @Description:
 * @Date: Created in 1:11 2022/4/5
 * @Modified By:
 */
@Controller
@RequestMapping("/demo")
public class DemoController {
    @RequestMapping("/Hello")
    public String Hello(Model model) {

        model.addAttribute("name", "xxxx");
        return "hello";
    }
}
